//
//  MyFeedbackVC.swift
//  Venus
//
//  Created by qurongxiang on 2018/9/8.
//  Copyright © 2018年 zhaowang. All rights reserved.
//

import UIKit

class MyFeedbackVC: BaseViewController {
    
    let textView = HintTextView()
    
    let clickBtn = UIButton(type: .custom)
    
    override func viewDidLoad() {
        super.viewDidLoad()
        title = "用户反馈"
        view.backgroundColor = kColorC2
        setupUI()
    }
    
    @objc func clickBtnAction(btn:UIButton){
        self.hudLoadMessage("提交反馈成功")
    }
}

extension MyFeedbackVC {
    func setupUI() {
        view.addSubview(textView)
        view.addSubview(clickBtn)
        
        textView.frame = CGRect(x: 10, y: LayoutCommon.navHeight + 20, width: LayoutCommon.width - 20, height: 200)
        textView.hint = "输入您想说的话"
        
        clickBtn.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(20)
            make.right.equalToSuperview().inset(20)
            make.height.equalTo(40)
            make.top.equalTo(textView.snp.bottom).offset(50)
        }
        
        clickBtn.backgroundColor =  UIColor.init(hex:"17bbfe")
        clickBtn.setTitle("提 交", for: .normal)
        clickBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
        clickBtn.fastCornerRadius(value: 20)
        clickBtn.addTarget(self, action: #selector(clickBtnAction(btn:)), for: .touchUpInside)
        
    }
}
